aboutsummaryrefslogtreecommitdiff
path: root/src/pages/board/[board].astro
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-08-29 19:01:20 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-08-29 19:01:20 +0300
commit8e4163e3f08e29f38fe87c59d8cfb91e0fa98063 (patch)
tree2b117f4bafa0a4d10252eef95ca868a247a081a1 /src/pages/board/[board].astro
parent9d952483f250a97cbeab4061fa1c4e68341b330f (diff)
everything works
Diffstat (limited to 'src/pages/board/[board].astro')
-rw-r--r--src/pages/board/[board].astro22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/pages/board/[board].astro b/src/pages/board/[board].astro
index a529d3c..eaea03e 100644
--- a/src/pages/board/[board].astro
+++ b/src/pages/board/[board].astro
@@ -1,8 +1,9 @@
---
-import Default from '../../layouts/Default.astro';
-import Thread from '../../components/Thread.svelte'
import '../../styles/thread.css'
-import '../../styles/blackbox.css?'
+import '../../styles/blackbox.css'
+
+import ThreadLayout from '../../layouts/ThreadLayout.astro';
+import Thread from '../../components/Thread.astro'
import type Thread from '../../models/Thread';
import { api } from '../../lib/api.ts';
@@ -18,8 +19,11 @@ for(let thread of threads)
await processThreadIn(board, thread);
---
-<Default>
- <h1><a href="/boards"> {board} </a></h1>
+<ThreadLayout>
+ <h1 style="text-align:center">
+ <a href=`/boards`>{board}</a>
+ </h1>
+
<div class="blackbox">
<button style="left: 50%; position: relative; transform: translate(-50%, 0);" onclick=`window.location='/create/${board}'`>Create Thread</button>
</div>
@@ -27,10 +31,4 @@ for(let thread of threads)
{threads.map((thread) => (
<Thread thread={thread} board={board} />
))}
-</Default>
-
-<style is:inline>
- :root {
- --wdt: 600px;
- }
-</style>
+</ThreadLayout>